<form id="form1" method="POST" action="">
<label for="table">{__ t='Table'}:</label>
<select id="table" name="table" onchange="$('#form1').submit();">
	{if !isset($selected)}<option selected>{__ t='Choose a Table'}</option>{/if}
	{foreach from=$table_array item=table_name}
	<option value="{$table_name}" {if isset($selected) && $selected==$table_name}selected{/if}>{$table_name}</option>
	{/foreach}
</select>
</form>